# -*- coding:utf-8 -*-
class Solution:
    def __init__(self):
        self.ans = 0
    def Sum_Solution(self, n):
        # write code here
        self.cal(n)
        return self.ans
    def cal(self,n):
        self.ans+=n
        n-=1
        return n and self.cal(n)